home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / byte0387.arc / DAWSON.ARC / SIMPP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1985-07-12  |  2.2 KB  |  60 lines

  1. /*********************************************\
  2. *                           *
  3. *    simpp.h = Include file for SIMPP:          *
  4. *    For Simple IMage Processing Package.     *
  5. *    Copyright (c) 1987, Benjamin M. Dawson.  *
  6. *      Edit Version: 1.2 : Jan-30-87          *
  7. *                           *
  8. \*********************************************/
  9.  
  10. /* Type definitions */
  11. #ifndef VOID            /* VOID: No useful return from function */
  12. #define VOID
  13. #endif
  14.  
  15. /* Storage definitions.  May need to be changed for your hardware!! */
  16. #define PIXEL unsigned char    /* Pixel type must be an 8-bit value! */
  17. #define PIXEL_SIZE 256        /* Size of pixel */
  18. #define MINPIX (PIXEL)0        /* Minimum pixel value */
  19. #define MAXPIX (PIXEL)(PIXEL_SIZE-1)    /* Maximum pixel value */
  20. #define XSTART 0        /* Starting image memory X address */
  21. #define YSTART 0        /* Starting image memory Y address */
  22. #define XSIZE 512        /* Horizontal (row) size of image memory */
  23. #define YSIZE 480        /* Vertical (column) size of image memory */
  24. #define XEND XSIZE-1        /* Last horizontal pixel address */
  25. #define YEND YSIZE-1        /* Last vertical pixel address */
  26.  
  27.  
  28. /* Option switches */
  29. #define CHECK            /* Define CHECK for bounds checking */
  30.  
  31. /* Return values */
  32. #define ERROR -1        /* Error return */
  33. #define OK 0            /* Return OK */
  34.  
  35. /* Convolution switches */
  36. #define MAX_KERNEL_SIZE 8    /* Maximum size of kernel */
  37. #define    SIGNED 0        /* Don't change convolution output */
  38. #define POSITIVE 1        /* Output + values only. - set to 0 */
  39. #define NEGATIVE 2        /* Set + values to 0, output - of - values */
  40. #define ABSOLUTE 3        /* Output absolute values */
  41.  
  42. /* External declarations */
  43. extern PIXEL read_pixel();
  44. extern PIXEL read_LUT();
  45.  
  46. /* CPU and image memory (image processor) specific definitions */
  47. #define MEMSIZE 65516L        /* Size of largest buffer for CII Big model */
  48. #undef NO_SIGN_FILL        /* Define if CPU does NOT fill with */
  49.                 /* bits on a right shift (see convolution) */
  50. #define LUTS            /* Define LUTS if you have output LUTS */
  51. #ifdef LUTS
  52. #define RED 1            /* Select RED LUT */
  53. #define GREEN 2            /* Select GREEN LUT */
  54. #define BLUE 3            /* Select BLUE LUT */
  55. #endif
  56.  
  57. /* ================ End of simpp.h ================ */
  58.  
  59. /* <-- FILE BREAK --> */
  60.